package com.dotc.patterndemo;

import com.dotc.patterndemo.action.template.ShoppingCart;
import com.dotc.patterndemo.entity.Fruit;

import java.util.List;

public class OtherPayShopping extends ShoppingCart {

    public OtherPayShopping(List<Fruit> products) {
        super(products);
    }

    @Override
    protected void pay(int money) {
        System.out.println("代付成功");
    }
}
